<?php
$currentController = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
$currentAction = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
$currentSelection = Zend_Controller_Front::getInstance()->getRequest()->getParam('selection');
?>
  	<div class="mainNav">
    	<ul class="firstLevel">
      	<li>
      	 <a class="cufon <?php if ($currentController === "sunsethours") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'sunsethours', 'action' => 'index'), null, true) ?>"><?php echo strtoupper($this->translatex('SH_SUNSET_HOUR')); ?></a>
<?php if ($currentController === "sunsethours") { ?>
          <ul class="secondLevel">
              <?php if(!$this->layout()->hideM) { ?>
          	<li><a href="<?php echo $this->url(array('controller' => 'sunsethours', 'action' => 'wall')) ?>" <?php if ($currentAction === "wall") { echo "class=\"selected\""; }?> ><?php echo $this->translatex('SH_SUNSET_WALL'); ?></a></li>
              <?php } ?>
          	<li><a href="<?php echo $this->url(array('controller' => 'sunsethours', 'action' => 'takerapp')) ?>" <?php if ($currentAction === "takerapp") { echo "class=\"selected\""; }?> ><?php echo $this->translatex('SH_SUNSET_APP'); ?></a></li>
              <?php if(!$this->layout()->hideM) { ?>
          	<li><a href="<?php echo $this->url(array('controller' => 'sunsethours', 'action' => 'uploadimage')) ?>" <?php if ($currentAction === "uploadimage") { echo "class=\"selected\""; }?>><?php echo $this->translatex('SH_SUNSET_UPLOAD_IMAGE'); ?></a></li>
              <?php } ?>  
          </ul>
<?php } ?>          
      	</li>
      	<li>
      	 <a class="cufon <?php if ($currentController === "drinks") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'drinks', 'action' => 'index'), null, true) ?>"><?php echo strtoupper($this->translatex('SH_DRINKS')); ?></a>
<?php if ($currentController === "drinks") { ?>
          <ul class="secondLevel">
      <?php foreach ($this->layout()->selectionMenu as $key => $value) { ?>         
          	<li><a href="<?php echo $this->url(array('controller' => 'drinks', 'action' => 'cocktails', 'selection' => $value), null, true) ?>" <?php if ($currentSelection == $value) { echo "class=\"selected\""; }?>><?php echo $key ?></a></li>
      <?php } ?> 
          </ul>
<?php } ?>       	
      	</li>
      	<li>
      	 <a class="cufon <?php if ($currentController === "aboutus") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'aboutus', 'action' => 'index'), null, true) ?>"><?php echo strtoupper($this->translatex('SH_ABOUT_US')); ?></a>
<?php if ($currentController === "aboutus") { ?>
      	  <ul class="secondLevel">
          	<li><a href="<?php echo $this->url(array('controller' => 'aboutus', 'action' => 'elaboration')) ?>" <?php if ($currentAction === "elaboration") { echo "class=\"selected\""; }?>><?php echo $this->translatex('SECRET_BREADCRUMB_ELABORATION'); ?></a></li>
          	<li><a href="<?php echo $this->url(array('controller' => 'aboutus', 'action' => 'history')) ?>" <?php if ($currentAction === "history") { echo "class=\"selected\""; }?>><?php echo $this->translatex('PRODUCT_HISTORY'); ?></a></li>
          </ul>
<?php } ?>
      	</li>
      	<li><a class="cufon <?php if ($currentController === "collection") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'collection', 'action' => 'index'), null, true) ?>"><?php echo strtoupper($this->translatex('SH_COLLECTION')); ?></a>
<?php if ($currentController === "collection") { ?>
      	  <ul class="secondLevel">
          	<li><a href="<?php echo $this->url(array('controller' => 'collection', 'action' => 'limitededition'), null, true) ?>" <?php if ($currentAction === "limitededition") { echo "class=\"selected\""; }?>><?php echo $this->translatex('SH_LIMITED_EDITION_BOTTLE'); ?></a></li>
      <?php foreach ($this->layout()->mainPartCollectionMenu as $key => $value) { ?>         
          	<li><a href="<?php echo $this->url(array('controller' => 'collection', 'action' => 'products', 'selection' => $value), null, true) ?>" <?php if ($currentSelection == $value) { echo "class=\"selected\""; }?>><?php echo $key ?></a></li>
      <?php } ?> 
          </ul>
<?php } ?>       	
      	</li>
      	<li><a class="cufon <?php if ($currentController === "gastronomy") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'gastronomy', 'action' => 'index'), null, true) ?>"><?php echo strtoupper($this->translatex('SH_GASTRONOMY')); ?></a>
<?php if ($currentController === "gastronomy") { ?>
          <ul class="secondLevel">
          	<li><a href="<?php echo $this->url(array('controller' => 'gastronomy', 'action' => 'desserts')) ?>" <?php if ($currentAction === "desserts") { echo "class=\"selected\""; }?>><?php echo $this->translatex('DESSERT_DESSERTS'); ?></a></li>
          	<li><a href="<?php echo $this->layout()->cDomain ?>" target="_blank"><?php echo $this->translatex('SH_COOKTAILS'); ?></a></li>
          </ul>
<?php } ?>
        </li>

        </ul>
    </div>